<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <input type="text" maxlength="200" name="on">
    <span>0</span>/200
</body>
<script>
    let no = document.querySelector("input[name=on]")
    let span = document.querySelector("span")
    no.oninput=function(){
        let input = no.value;
        console.log(span);
        span.innerHTML=input.length;
    }
</script>
</html>